<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="java.sql.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="language" value="${not empty param.language ? param.language : not empty language ? language : pageContext.request.locale}" scope="session" />
<fmt:setLocale value="${language}" />
<fmt:setBundle basename="properties.text" />

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><fmt:message key="desription" /></title>
<script type="text/javascript" src="validatePD.js"> </script>
</head>
<body>
<form action="positionDescription" method="POST" onsubmit="return validateFields();">
		Id <fmt:message key="desription" />:<input type="number" name="idDescription" id="idDescription"><br/>
		<fmt:message key="requirements" />:<input type="text" name="requirements" id="requirements"><br/>
		<fmt:message key="responsabilities" />:<input type="text" name="responsabilities" id="responsabilities"><br/>
		<fmt:message key="project" />:<input type="text" name="project"><br/>
		<fmt:message key="department" />:	<select name="department">
        			<c:forEach items="${dep}" var="depart">
           				 <option value="${depart.idDepartment}">${depart.name}</option>
       				 </c:forEach>
    				</select><br/>		
    	<input type="submit" value=<fmt:message key="insert" /> name="add"><br/>
    	<input type="submit" value=<fmt:message key="edit" /> name="edit"><br/>
    	<input type="submit" value=<fmt:message key="remove" /> name="delete"><br/>
	 <!--	<input type="submit" value="Insert" name="action"><br/>		-->
	</form>
</body>
</html>